package com.biz.primus.ms.oms.service.allocation;

import com.biz.primus.ms.oms.vo.AllocationRequestVo;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * 分单服务,按照客户自定的规则,将订单分配给指定门店
 *
 *
 *
 * @author yanweijin
 * @date 2017/10/18
 */
public interface OrderAllocationService {


	/**
	 * 将指定的订单按照一定的规则分配给门店, 要求订单状态为 orderBegin, 分配之后,订单状态修改为 allocated
	 *
	 *
	 * @param req
	 */
	@Transactional(rollbackFor = Exception.class)
	void allocateOrder(AllocationRequestVo req);
}
